package com.office.meetingManage.meeting.dao;

import com.office.meetingManage.meeting.model.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IMetingDao {


    //查询会议信息
    public List<MeetingMessage>
    getMeetingMessage(MeetingMessageCondition meetingMessageCondition);


    //添加会议信息

    public boolean addMeetingMessage(MeetingMessage meetingMessage);

    //添加参会人员

    public boolean addAttendStaff(attend attend);

    //向员工发送会议信息
    public boolean addOnlineMessage(OaOnlineMessage oaOnlineMessage);

    //修改会议室状态
    public boolean updateMeetRoomStatus(MeetingMessage meetingMessage);

    //修改会议信息

    public boolean updateMeetingMessage(MeetingMessage meetingMessage);

    //删除会议信息
    public boolean deleteMeetingMessage(MeetingMessageCondition meetingMessageCondition);

    //删除参加会议的参会人

    public boolean deleteAttend(MeetingMessageCondition meetingMessageCondition);

    //删除发送的信息

    public boolean deleteMessage(MeetingMessageCondition meetingMessageCondition);

    //员工本人查询会议信息

    //查询员工id和姓名

    public List<staff> getStaffMessage();

    //查询会议室id和会议室名
    public List<meetingRoom> getMeetingRoom();

    //添加会议记录
    public boolean addOaRecord(OaRecord oaRecord);


    //查询会议记录是否存在
    public List<OaRecord> checkOaRecord(OaRecord oaRecord);

    //查询会议内容
    public RecordMessage checkRecordMessage(OaRecord oaRecord);


    //查询个人安排
    public List<PersonalArrangement> checkPersonalArrangement(staff staff);


    //查看留言信息
    public List<MessageArrangement> checkMessageArrangement(staff staff);

    //查看日程安排


    public List<WorkArrangement> checkWorkArrangement(staff staff);

    //修改留言 已读

    public boolean updateMessageArrangement(MessageArrangement messageArrangement);


    //修改参会状态 已参会

    public boolean updatePersonalArrangement(PersonalArrangement personalArrangement);



    //删除留言信息安排任务
    public boolean deleteMessageArrangement(MessageArrangement messageArrangement);

    //删除会议安排任务
    public boolean deletePersonalArrangement(PersonalArrangement personalArrangement);

    //修改日程安排 已完成
    public boolean updateWorkArrangement(WorkArrangement workArrangement);

    //删除日程安排任务
    public boolean deleteWorkArrangement(WorkArrangement workArrangement);
}
